package com.beamfield.dao.process;

import com.beamfield.model.ProcPlan;
import com.beamfield.modelVo.ProcPlanVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface ProcPlanMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ProcPlan record);

    int insertSelective(ProcPlan record);

    ProcPlan selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProcPlan record);

    int updateByPrimaryKey(ProcPlan record);

    List<ProcPlanVo> selectPage(@Param("beamId") long beamId,@Param("offset") String offset,@Param("limit") String limit,@Param("projectId") String projectId);

    long countPage(@Param("beamId") long beamId,@Param("projectId") String projectId);

    int sumNumByBeamId(@Param("beamId") Long beamId);

    ProcPlan selectByMonth(@Param("beamId") Long beamId,@Param("month") String nowMonth);
}